import request from '../utils/axios';

// 题库相关
export const getQuestions = () => request.get("/question/questions");
export const deleteQuestion = (id) => request.delete(`/question/questions/${id}`);
export const createQuestion = (data) => request.post("/question/questions", data);
export const updateQuestion = (data) => request.put(`/question/questions`, data);

// 学科列表
export const getSubjects = () => request.get("/subject/subjects");


